package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 专业简介对象 danmo_art_content
 * 
 * @author yangle
 * @date 2024-11-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoArtContent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 专业信息内容主键唯一 */
    private Long contentId;

    /** 一级标题 */
    @Excel(name = "一级标题")
    private String parentHeading;

    /** 专业ID */
    @Excel(name = "专业ID")
    private Long majorId;

    /** 富文本  */
    @Excel(name = "富文本 ")
    private String richText;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 图集（多张图片，隔开） */
    @Excel(name = "图集", readConverterExp = "多=张图片，隔开")
    private String atlas;

    private List<DanmoArtMajors> danmoArtMajorsList;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("contentId", getContentId())
            .append("parentHeading", getParentHeading())
            .append("majorId", getMajorId())
            .append("richText", getRichText())
            .append("sort", getSort())
            .append("atlas", getAtlas())
            .toString();
    }
}
